package com.credithc.signature.common.configure;

import com.credithc.baseserv.core.codes.CoreCodes;
import com.credithc.baseserv.core.message.MessageFactory;
import com.credithc.baseserv.core.message.impl.MessageFactoryImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhukai
 * @date 19/3/11 0011 14:11
 */
@Configuration
public class MessageFactoryConfig {

    @Bean
    public MessageFactory messageFactory(){
        MessageFactory messageFactory = new MessageFactoryImpl();
        messageFactory.addCodesClass(CoreCodes.class);
        return messageFactory;
    }
}
